﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Publisher.aspx.cs" Inherits="CV_Projekt.FormPublisher" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MenuContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="StyleSheets/WorkAdvert.css" rel="stylesheet" />
    <div id="WorkAdvertisementDiv">

        <label>Jobbtitel</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxWorkTitle" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorWorkTitle" runat="server" ErrorMessage="Jobbtitel saknas" Text="*" ControlToValidate="TextBoxWorkTitle"></asp:RequiredFieldValidator>
        <br />


        <label>Artbetsplats</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxWorkLocation" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorLocation" runat="server" ErrorMessage="Artbetsplats saknas" Text="*" ControlToValidate="TextBoxWorkLocation"></asp:RequiredFieldValidator>
        <br />

        <label>Jobbeskrvning</label>
        <textarea runat="server" id="TextAreaWorkDescription" name="S1"></textarea>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorDescription" runat="server" ErrorMessage="Beskrvning saknas" Text="*" ControlToValidate="TextAreaWorkDescription"></asp:RequiredFieldValidator>
        <br />

        <label>Anställningstid (dagar,tillsvidare)</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxEmploymentDurationInDays" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorEmploymentDurationInDays" runat="server" ErrorMessage="Anställningstid saknas" Text="*" ControlToValidate="TextBoxEmploymentDurationInDays"></asp:RequiredFieldValidator>
        <br />
        <br />

        <label>
            Sista ansökningsdag
        </label>
        <asp:Calendar CssClass="Calenadar" ID="Calendar" runat="server" BackColor="White" BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
            <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
            <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
            <OtherMonthDayStyle ForeColor="#999999" />
            <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
            <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True" Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
            <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
            <WeekendDayStyle BackColor="#CCCCFF" />
        </asp:Calendar>

        <br />

        <label>Lönetyp</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxSalaryType" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorSalaryType" runat="server" ErrorMessage="Lönetyp saknas" Text="*" ControlToValidate="TextBoxSalaryType"></asp:RequiredFieldValidator>
        <br />

        <label>Kontaktperson</label>
        <asp:TextBox CssClass="Textbox" ID="TextBoxContactDescription" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorContactDescription" runat="server" ErrorMessage="Kontaktperson saknas" Text="*" ControlToValidate="TextBoxContactDescription"></asp:RequiredFieldValidator>
        <br />


        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />

        <div id="SaveButtonDiv">

            <asp:Button ID="ButtonAdd" runat="server" Text="Lägg till" OnClick="ButtonAdd_Click" />
            <br />
            <asp:Button ID="ButtonUpdate" runat="server" Text="Uppdatera markerad" OnClick="ButtonUpdate_Click" />

        </div>

        <asp:Button ID="Button2" runat="server" OnClick="ButtonSave_Click" Text="Spara" />
        <br />
        <asp:Label CssClass="NotSavedLabel" ID="LabelSaved" runat="server" Text="Ej sparat!" Visible="False" ForeColor="Red"></asp:Label>

    </div>
    <div id="AdvertismentListDiv">
        <h3 id="AddsHeader">Mina annonser</h3>
        <asp:ListBox CssClass="ListBox" ID="ListBoxAdverts" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ListBoxAdverts_SelectedIndexChanged"></asp:ListBox>

        <br />
        <asp:Button ID="ButtonDelete" runat="server" Text="Ta bort markerad" OnClick="ButtonDelete_Click" CausesValidation="False" />



        <h3>Borttagna annonser</h3>
        <asp:ListBox CssClass="ListBox" ID="ListBoxDeleted" runat="server" AutoPostBack="True"></asp:ListBox>

        <br />
        <asp:Button ID="ButtonUnDelete" Text="Återställ jobbannons" runat="server" OnClick="ButtonUnDelete_Click" ValidateRequestMode="Disabled" CausesValidation="False" />


    </div>

</asp:Content>









